package com.qumitech.visualnovel.datasource.channel;

import com.qumitech.visualnovel.model.dao.channel.LaunchChannelData;
import com.qumitech.visualnovel.model.dao.channel.LaunchExpense;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LaunchChannelMapper {
    List<LaunchChannelData> getLaunchChannelData(@Param("startTime") String startTime,
                                                 @Param("endTime") String endTime,
                                                 @Param("channel") String channel,
                                                 @Param("status") Integer status,
                                                 @Param("offset") Integer offset,
                                                 @Param("pageSize") Integer pageSize,
                                                 @Param("orderType") String orderType,
                                                 @Param("orderBy") String orderBy);

    int getLaunchChannelDataCount(@Param("startTime") String startTime,
                                  @Param("endTime") String endTime,
                                  @Param("channel") String channel,
                                  @Param("status") Integer status);

    void insert(@Param("channel") String channel,
                @Param("targetDate") String targetDate);

    void updateLaunchChannelStatus(@Param("channel") String channel);

    List<LaunchExpense> getLaunchExpenseList(@Param("startTime") String startTime,
                                             @Param("endTime") String endTime,
                                             @Param("channel") String channel,
                                             @Param("offset") int offset,
                                             @Param("limit") int limit,
                                             @Param("orderBy") String orderBy,
                                             @Param("orderType") String orderType);

    List<String> getConsumeROIReference();
}
